import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { UsrInfoProvider } from '../../providers/usr-info/usr-info';
import { HttpServiceProvider } from '../../providers/http-service/http-service';
import { LoginPage } from '../login/login';
/**
 * Generated class for the UsermodifyPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-usermodify',
  templateUrl: 'usermodify.html',
})
export class UsermodifyPage {

  constructor(public navCtrl: NavController, public navParams: NavParams, private usrInfoProvider: UsrInfoProvider) {
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad UsermodifyPage');
  }

  usrLogout()
  {
    this.usrInfoProvider.remove('usr_info');    
    this.navCtrl.setRoot(LoginPage);
  }

}
